import { defineStore } from 'pinia';

export const diypage = defineStore('diypage', {
	state: (): DiyPageStates => ({
		diyPageData: {
			id: '',
			pageName: '微页面',
			selectedIndex: undefined,
			componentsList: [],
		},
	}),
	actions: {
		setDiyPageData(data: DiyPageStates) {
			this.diyPageData = data.diyPageData;
		},
	},
});
